import request from '@/utils/request'
import defaultSettings from '@/settings'

// 业务参数维护列表
export const bizMngMainUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamMaintain/search`,
}

// 业务参数维护审核列表
export const bizParaApproveUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamApprove/search`,
}

// 业务参数查询列表
export const bizParaQueryUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamQuery/search`,
}

// 技术参数维护列表
export const technolParamMainUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamMaintain/search`,
}

// 技术参数维护审核列表
export const technolParamApproveUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamApprove/search`,
}

// 技术参数查询列表
export const technolParamQueryUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamQuery/search`,
}

// 业务参数新增
export function bizParaAdd(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamMaintain/saveEntry`,
    method: 'post',
    data,
  })
}

// 业务参数修改详情
export function bizParaDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamMaintain/detail`,
    method: 'get',
    params: data,
  })
}

// 业务参数修改提交
export function bizParaUpdate(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamMaintain/save`,
    method: 'post',
    data,
  })
}

// 业务参数审批明细
export function bizParamApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamApprove/detail`,
    method: 'get',
    params: data,
  })
}

// 业务参数维护审核
export function bizParaApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamApprove/approve`,
    method: 'post',
    data,
  })
}

// 业务参数维护拒绝
export function bizParaReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamApprove/reject`,
    method: 'post',
    data,
  })
}

// 业务参数查询明细
export function bizParaQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/BusinessParamQuery/detail`,
    method: 'get',
    params: data,
  })
}


// 技术参数修改详情
export function technolParamMaintainDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamMaintain/detail`,
    method: 'get',
    params: data,
  })
}

// 技术参数修改提交
export function techParaUpdate(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamMaintain/save`,
    method: 'post',
    data,
  })
}

// 技术参数审批明细
export function technolParamApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamApprove/detail`,
    method: 'get',
    params: data,
  })
}

// 技术参数维护审核
export function techParaApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamApprove/approve`,
    method: 'post',
    data,
  })
}

// 技术参数维护拒绝
export function techParaReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamApprove/reject`,
    method: 'post',
    data,
  })
}

// 技术参数查询明细
export function technolParamQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/paramManager/technolParamManager/TechnolParamQuery/detail`,
    method: 'get',
    params: data,
  })
}